﻿CREATE TABLE [dbo].[fares_DocumenteImportate] (
    [Cheie]      BIGINT       NOT NULL,
    [Tabela]     VARCHAR (20) NOT NULL,
    [Operatie]   VARCHAR (10) NOT NULL,
    [CodUnitate] SMALLINT     CONSTRAINT [DF_fares_DocumenteImportate_CodUnitate] DEFAULT ((0)) NOT NULL,
    [Data]       DATETIME     CONSTRAINT [DF_fares_DocumenteImportate_Data_1] DEFAULT (getdate()) NOT NULL,
    CONSTRAINT [PK_fares_DocumenteImportate] PRIMARY KEY CLUSTERED ([Cheie] ASC, [Tabela] ASC),
    CONSTRAINT [FK_fares_DocumenteImportate_Unitati] FOREIGN KEY ([CodUnitate]) REFERENCES [dbo].[Unitati] ([CodUnitate])
);

